import Axios from 'axios'
const axios = (type,url,data) => {
  return new Promise((resolve,reject) => {
    Axios({
      method:type,
      url:url,
      data:data
    }).then(res=>{
      resolve(res);
    }).catch(err=>{
      reject(err)
    })
  })
}

export default axios
